home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / amos / amoslist-0295.lzh / AMOSLIST / text0068.txt < prev    next >
Encoding:
Text File  |  1995-03-01  |  1.6 KB  |  34 lines

  1.  
  2. I'm writing a top-down racing game, which involves x number of cars
  3. racing around a track, with inertia etc. Each car has two velocities, X
  4. and Y, which can be positive or negative, to indicate direction (ie X=4,
  5. Y=4 vehicle going South East). I want to get some sort of "bounce"
  6. effect when two cars collide, making it as realistic as possible, rather
  7. than just throwing both cars off a bit and slowing them down. To do this
  8. i have to recognise which way the cars are facing (easy), what speed
  9. they are going in that direction (easy), which car hit which car (dunno
  10. how to do) and what the consequences are (Erk!). For example, if car 1
  11. which is going South at speed 4, hits Car 2 going East at Speed 3, what
  12. happens to both cars? Realistically, Car 1 should slow down a bit, and
  13. car 2 should accelerate briefly southwards, perhaps slowing down is
  14. speed in the other directions. I really want to do this to give th
  15. eplayer the option of "Ramming" the other cars into obstacles etc. I've
  16. got the inertia, background collisions, pick ups, power ups, artificial intelligence, and just
  17. about everything else done, its just the car/car collisions that i cant
  18. seem to get my head round. Has anyone got any ideas on how to tackle the
  19. problem? I suppose their really should be some sort of Newtonian Equasion
  20. that should solve it..help!  
  21.  
  22. The game itself is based around a certain UK TV program, and features 2
  23. megs of samples, 1 meg of anims and 2 megs of digitised pics..at the
  24. moment! Its HD and 2 meg only at the moment, but a cut down A500 version
  25. will be availble..hopefully!
  26.  
  27. Any help appreciated!
  28.  
  29. Lud.
  30.  
  31. pl@soton.ac.uk
  32.  
  33.  
  34.